package me.zixing.java.chapter06;

/**
 * Created by bingh on 2017/10/27.
 */
public class StringDemo {

    public StringDemo() {
    }

    public void StringDemo() {
    }

    public static void main(String[] args){
        String str = "哈哈";
        int length = str.length();//返回字符串的长度
        System.out.println(length);
        char a = str.charAt(0);//根据索引返回字符
        //str.charAt(3);
        System.out.println(a);
        int codePoint =  str.codePointAt(0);

    }
}

